package com.kh.utils;

import javax.servlet.http.HttpSession;

import com.kh.pojo.KHUser;

public class UserUtils {
	public static final String KH_USER = "kh-user";
	
	public static final String THEME ="kit_admin/";

	public static KHUser getUser() {
		HttpSession session = ContextHolderUtils.getSession();
		return (KHUser)session.getAttribute(session.getId());
	}
	public static void setUser(KHUser user) {
		HttpSession session = ContextHolderUtils.getSession();
		session.setAttribute(session.getId(), user);
	}
	public static String getStaffNo() {
		return getUser().getStaffNo();
	}
}
